<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2018/10/22
 * Time: 18:08
 */

namespace App\Transformers;


use App\Models\Help;
use League\Fractal\TransformerAbstract;

class HelpTransformer extends TransformerAbstract
{
    public function transform(Help $help){
        return[
            'id'=>$help->id,
            'title' => $help->title,
            'contents' => $help->contents,
        ];
    }
}